package com.lvhx.springboot.springbatch.batch;

import org.springframework.batch.core.JobParameters;

/**
 * @auther 吕宏旭
 * @date 2019/9/18 15:52
 */
public class DefaultBatchManager implements BatchManager {
    private TaskExecutor taskExecutor;

    public void setTaskExecutor(TaskExecutor taskExecutor) {
        this.taskExecutor = taskExecutor;
    }

    @Override
    public void launchAsync(String jobName, JobParameters jobParameters) {
        taskExecutor.execute(new Thread());
    }
}
